package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.vo.PageBeanVo;
import org.bson.types.ObjectId;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/3/18 21:19
 * @Version 1.0
 */

//圈子、视频交互模块
public interface CommentService {

    //保存
    Integer saveComment(Comment comment);


    //删除
    Integer removeComment(Long userId, ObjectId publishId, Integer commentType);

    // 分页查询
    PageBeanVo findCommentByPage(ObjectId publishId, Integer commentType, Integer pageNum, Integer pageSize);

    //查询评论人的信息
    PageBeanVo findUserCommentByPage(Long publishUserId, Integer commentType, Integer pageNum, Integer pageSize);



}
